// import Vue from 'vue'
import VueRouter from 'vue-router'
// Vue.use(VueRouter)
import layout from '@/layout/layout'
import HelloWorld from '@/pages/HelloWorld'
import text from '@/pages/text'
import product from '@/pages/product'
import antd from '@/pages/antdDemo'

// objToSelect
import jisuan from '@/pages/objToList/treeSelect'
import ceshi from '@/pages/objToList/input'

import shu from '@/pages/antShu'
import el from '@/pages/elDemo'
import hover from '@/pages/hover'
import money from '@/pages/element/moneyInput'
import dialog from '@/pages/element/dialog'
import model from '@/pages/antd/modelDemo'

import fixedTable from '@/pages/html/fixedTable'
import table from '@/pages/html/table'
import eleTable from '@/pages/html/eleTable'
import father from '@/pages/html/father'
import home from '@/pages/Home'
import home1 from '@/pages/home1'
const routes = [
    { path: '/', name: 'index', component: layout, meta: { title: 'menu.home' }, },
    { path: '/hw/:id', component: HelloWorld },
    { path: '/text', component: text },
    { path: '/pro', component: product },
    // { path: '/antd', component: antd },
    { path: '/jisuan', component: jisuan },
    { path: "/tree", component: ceshi },
    { path: "/search", component: shu },
    { path: "/el", component: el },
    { path: "/hover", component: hover },
    { path: "/money", component: money },
    { path: "/model", component: model },
    { path: "/dialog", component: dialog },
    { path: "/fix", component: fixedTable },
    { path: "/table", component: table },
    { path: "/eleTable", component: eleTable },
    { path: "/father", component: father },
    { path: "/home", component: home },
    { path: "/home1", component: home1 },
    {
        path:"/antd/tree",
        name:'tree',
        component:()=>import('@/pages/antd/tree')
    },
    {
        path:"/antd/radio",
        name:'tree',
        component:()=>import('@/pages/antd/radio')
    },    {
    path:"/antd/table",
        name:'tree',
        component:()=>import('@/pages/antd/table')
    },
    // {
    //     path:"/antd",
    //     children:[
    //         {
    //             path:"/antd/tree",
    //             name:'tree',
    //             component:()=>import('@/pages/antd/tree')
    //         }
    //     ]
    // }
]

const router = new VueRouter({
    routes
})

export default router